< previous page page_64 next page >

Page 64
Table 3.10 Common Check Box Properties.
PropertyDescription
AlignmentThis property can be set to Left Align or Right Align. This determines on which side of the text the check box will appear.
CaptionSet this property to the text you want to have appear next to the check box.
NameSet this property to the value you want to use to refer to the control in your code. You should preface the name with the letters chk.
PictureThis property can be set to a bitmap, GIF, or JPEG file if youve set the Style property to 1-Graphical. This picture will be displayed next to the check box instead of the text in the Caption property.
StyleSet this property to 0-Standard if you want to display text beside the check box, or you can set the property to 1-Graphical if you want to display a picture beside the check box.
ValueThe check box may be set to one of three states: 0-Unchecked means that no check mark shows up in the check box. A value of 1-Checked means that this item has been selected and a check mark is visible. 2-Grayed means that this check box is not available at this time.

Picture Control
A picture control has two different uses: It can be used to display a picture, such as a bitmap, icon, or JPEG or GIF file, and it can be used as a container control like a frame. When used to display a picture, the picture control will load the picture, but the picture will retain its original sizein other words, it will not resize itself to the width and height of the picture control.
When youre using the picture control as a container for other controls, all the controls you place into it will move with the picture control. One of the nice features of using the picture control as a container is that it has an Align property. This property allows you to align the control to the top, left, right or bottom of the form. If you move or resize the form, the picture control will move or resize with the form.

 
< previous page page_64 next page >

If you like this book, buy it!